<template>
  <div>
    <Modal v-model="bannedPop" :closable="false" :mask-closable="false" class-name="vertical-center-modal" width="640">
      <div slot="header" class="pop-title">{{ $t("goods.buyer_reading") }}</div>
      <div class="tips-text">{{ $t('goods.reading_head') }}</div>
      <div slot="footer" class="footer-sty">
        <Checkbox v-model="agree">{{ $t('goods.reading_agree_tips') }}</Checkbox>
        <div class="confirm-btn" @click="confirmMet()">{{ $t('personal.Search-confirm') }}</div>
      </div>
    </Modal>
  </div>
</template>
<script>
export default {
  data() {
    return {
      bannedPop: false,
      agree: false
    }
  },
  methods: {
    confirmMet() {
      if (this.agree == false) {
        this.$Message.error({
          content: this.$t("pay.check"),
          background: true,
        })
      } else {
        this.bannedPop = false;
      }
    }
  }
}
</script>
<style lang="less" scoped>
:deep(.ivu-modal) {
  border-radius: 8px 8px 8px 8px;
}

:deep(.ivu-modal-content) {
  min-height: 340px;
  background: linear-gradient(181deg, #FFB6CC 0%, #FFFFFF 100%);
}

:deep(.ivu-modal-header) {
  border: none;
  padding: 34px 32px;
}

:deep(.ivu-modal-body) {
  padding: 0 32px;
}

:deep(.ivu-modal-footer) {
  border: none;
  padding: 34px 32px;
}

.pop-title {
  font-family: PingFang HK, PingFang HK;
  font-weight: 500;
  font-size: 24px;
  color: #1E1714;
  line-height: 28px;
}

.tips-text {
  font-family: PingFang SC, PingFang SC;
  font-weight: 400;
  font-size: 18px;
  color: #333333;
  line-height: 27px;
}

.footer-sty {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 94px;

  .confirm-btn {
    padding: 11px 40px;
    background: #F21473;
    font-family: PingFang HK, PingFang HK;
    font-weight: 500;
    font-size: 16px;
    color: #FFFFFF;
    line-height: 19px;
    border-radius: 8px;
    cursor: pointer;
  }
}
</style>
